package com.jx.medical.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author jx
 * @date Created on 2020/12/3  15:30
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Medicine {
    private int medId;
    private String medName;
    private String medIngredient;
    private String medCharacter;
    private String medEffect;
    private double medPrice;
    private int medStorage;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date medProDate;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date medUseDate;
    private int factoryId;

}
